//
//  AboutUsViewController.m
//  BaseProject
//
//  Created by 王洋 on 2020/8/4.
//  Copyright © 2020 王洋. All rights reserved.
//
#import "TT_WebviewController.h"

#import "AboutUsViewController.h"

@interface AboutUsViewController ()

@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];


    self.title = @"关于我们";
    
    self.versionLab.text = [NSString stringWithFormat:@"版本号：%@",APP_VERSION];
}

- (void)viewWillLayoutSubviews {
    [super viewWillLayoutSubviews];
    
    [self.evaluateBtn pp_clipCorners:UIRectCornerAllCorners radius:3 border:1 color:UIColorHex(0x999999)];
    
    [self.privacyBtn pp_clipCorners:UIRectCornerAllCorners radius:3 border:1 color:UIColorHex(0x999999)];

    
}

- (IBAction)evaluateAction:(id)sender {
    NSString *itunesUrl = @"itms-apps://itunes.apple.com/cn/app/id1514415622?mt=8&action=write-review";
//    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:itunesUrl]];

    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:itunesUrl] options:@{} completionHandler:^(BOOL success) {
    }];
    
}

- (IBAction)privacyAction:(id)sender {
    TT_WebviewController *vc = [[TT_WebviewController alloc] init];
    vc.webUrl = [NSString stringWithFormat:@"%@/%@", BA_GlobalPdf_Domain, kSecretPdf];
    [self.navigationController pushViewController:vc animated:YES];
}


@end
